import { NestFactory } from '@nestjs/core'
import { AppModule } from './app.module'
import Validate from './common/rules/validate.'

async function bootstrap() {
  const app = await NestFactory.create(AppModule)
  app.useGlobalPipes(new Validate())
  app.enableCors()
  await app.listen(3000)
}
bootstrap()
